<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="<c:url value='/js/My97DatePicker/WdatePicker.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/js/jquery-1.11.3.min.js'/>">
	
</script>
</head>
<body>
	<form action="<c:url value='/Emp/editOrSaveEmp'/>" method="post">
		<table>
			<tr>
				<td>EMPNO:</td>
				<td><input type="text" name="empno"
					value="<c:if test="${empty emp}"></c:if> ${emp.empno}"></td>
			</tr>
			<tr>
				<td>ENAME:</td>
				<td><input type="text" name="ename"
					value="<c:if test="${empty emp}"></c:if> ${emp.ename}"></td>
			</tr>
			<tr>
				<td>JOB:</td>
				<td><input type="text" name="job"
					value="<c:if test="${empty emp}"></c:if> ${emp.job}"></td>
			</tr>
			<tr>
				<td>MGR:</td>
				<td><input type="text" name="mgr"
					value="<c:if test="${empty emp}"></c:if> ${emp.mgr}"></td>
			</tr>
			<tr>
				<td>HIREDATE:</td>
				<td><input type="text" id="hiredate" name="hiredate"
					class="Wdate"
					onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
					value="<c:if test="${empty emp}"></c:if><fmt:formatDate value="${emp.hiredate }"
								pattern="yyyy-MM-dd HH:mm:ss" />">
				</td>
			</tr>
			<tr>
				<td>SAL:</td>
				<td><input type="text" name="sal"
					value="<c:if test="${empty emp}"></c:if> ${emp.sal}"></td>
			</tr>
			<tr>
				<td>DEPTNO:</td>
				<td><input type="text" name="deptno"
					value="<c:if test="${empty emp}"></c:if> ${emp.deptno}"></td>
			</tr>
		</table>
		<input type="submit" value="提交">
	</form>
</body>
</html>